Fry the onions and garlic till soft